﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nb.LMS.Domains.Accounts.Abstracts
{
    public interface IAccountPolicyService
    {
        AccountPolicy GetAccountPolicy();

        /// <summary>
        /// 根据策略加密密码
        /// </summary>
        /// <param name="password"></param>
        /// <param name="format"></param>
        /// <param name="salt"></param>
        /// <returns></returns>
        string EncryptPassword(string password, PasswordFormat format = PasswordFormat.Hashed, string salt = "");
    }
}
